import { generateRoutes } from '@/utils/autoRoutes'
import { createRouter, createWebHistory } from 'vue-router'
const routes = generateRoutes()
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: '/home'
    },
    ...routes
  ]
})

export default router
